
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2.3 HEAD · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../css/CSS.html" />
    
    
    <link rel="prev" href="语义化.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../基本原则.html">
            
                <a href="../基本原则.html">
            
                    
                    1. 基本原则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="HTML.html">
            
                <a href="HTML.html">
            
                    
                    2. HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="通用约定.html">
            
                <a href="通用约定.html">
            
                    
                    2.1 通用约定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="语义化.html">
            
                <a href="语义化.html">
            
                    
                    2.2 语义化
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.3" data-path="HEAD.html">
            
                <a href="HEAD.html">
            
                    
                    2.3 HEAD
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../css/CSS.html">
            
                <a href="../css/CSS.html">
            
                    
                    3. CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../css/通用约定.html">
            
                <a href="../css/通用约定.html">
            
                    
                    3.1 通用约定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../css/字体排印.html">
            
                <a href="../css/字体排印.html">
            
                    
                    3.2 字体排印
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../css/模块组织.html">
            
                <a href="../css/模块组织.html">
            
                    
                    3.3 模块组织
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../css/Less规范.html">
            
                <a href="../css/Less规范.html">
            
                    
                    3.4 Less规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../css/性能优化.html">
            
                <a href="../css/性能优化.html">
            
                    
                    3.5 性能优化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../javascript/js.html">
            
                <a href="../javascript/js.html">
            
                    
                    4. JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../javascript/通用约定.html">
            
                <a href="../javascript/通用约定.html">
            
                    
                    4.1. 通用约定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../javascript/jq.md">
            
                <span>
            
                    
                    4.2. jQuery 规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../javascript/性能优化.md">
            
                <span>
            
                    
                    4.3. 性能优化
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../">
            
                <a href="../">
            
                    
                    5. 移动端优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../">
            
                <a href="../">
            
                    
                    6. 工具箱
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../">
            
                <a href="../">
            
                    
                    7. 参考
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >2.3 HEAD</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="23-head">2.3 HEAD</h3>
<hr>
<p><strong>&#x6587;&#x6863;&#x7C7B;&#x578B;</strong></p>
<p>&#x4E3A;&#x6BCF;&#x4E2A; HTML &#x9875;&#x9762;&#x7684;&#x7B2C;&#x4E00;&#x884C;&#x6DFB;&#x52A0;&#x6807;&#x51C6;&#x6A21;&#x5F0F;&#xFF08;standard mode&#xFF09;&#x7684;&#x58F0;&#x660E;&#xFF0C; &#x8FD9;&#x6837;&#x80FD;&#x591F;&#x786E;&#x4FDD;&#x5728;&#x6BCF;&#x4E2A;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x62E5;&#x6709;&#x4E00;&#x81F4;&#x7684;&#x8868;&#x73B0;&#x3002;</p>
<pre><code>&lt;!DOCTYPE html&gt;
</code></pre><p><strong>&#x8BED;&#x8A00;&#x5C5E;&#x6027;</strong></p>
<p>&#x4E3A;&#x4EC0;&#x4E48;&#x4F7F;&#x7528; lang=&quot;zh-cmn-Hans&quot; &#x800C;&#x4E0D;&#x662F;&#x6211;&#x4EEC;&#x901A;&#x5E38;&#x5199;&#x7684; lang=&quot;zh-CN&quot; &#x5462;? &#x8BF7;&#x53C2;&#x8003;&#x77E5;&#x4E4E;&#x4E0A;&#x7684;&#x8BA8;&#x8BBA;: &#x7F51;&#x9875;&#x5934;&#x90E8;&#x7684;&#x58F0;&#x660E;&#x5E94;&#x8BE5;&#x662F;&#x7528; lang=&quot;zh&quot; &#x8FD8;&#x662F; lang=&quot;zh-cn&quot;&#xFF1F;</p>
<pre><code>&lt;!-- &#x4E2D;&#x6587; --&gt;
&lt;html lang=&quot;zh-Hans&quot;&gt;

&lt;!-- &#x7B80;&#x4F53;&#x4E2D;&#x6587; --&gt;
&lt;html lang=&quot;zh-cmn-Hans&quot;&gt;

&lt;!-- &#x7E41;&#x4F53;&#x4E2D;&#x6587; --&gt;
&lt;html lang=&quot;zh-cmn-Hant&quot;&gt;

&lt;!-- English --&gt;
&lt;html lang=&quot;en&quot;&gt;
</code></pre><p><strong>&#x5B57;&#x7B26;&#x7F16;&#x7801;</strong></p>
<ul>
<li>&#x4EE5;&#x65E0; BOM &#x7684; utf-8 &#x7F16;&#x7801;&#x4F5C;&#x4E3A;&#x6587;&#x4EF6;&#x683C;&#x5F0F;;</li>
<li>&#x6307;&#x5B9A;&#x5B57;&#x7B26;&#x7F16;&#x7801;&#x7684; meta &#x5FC5;&#x987B;&#x662F; head &#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x76F4;&#x63A5;&#x5B50;&#x5143;&#x7D20;&#xFF1B;</li>
</ul>
<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    ......
  &lt;/head&gt;
  &lt;body&gt;
    ......
  &lt;/body&gt;
&lt;/html&gt;
</code></pre><p><strong>IE &#x517C;&#x5BB9;&#x6A21;&#x5F0F;</strong></p>
<p>&#x4F18;&#x5148;&#x4F7F;&#x7528;&#x6700;&#x65B0;&#x7248;&#x672C;&#x7684;IE &#x548C; Chrome &#x5185;&#x6838;</p>
<pre><code>&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;
</code></pre><p><strong>SEO &#x4F18;&#x5316;</strong></p>
<pre><code>&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;
    &lt;!-- SEO --&gt;
    &lt;title&gt;Style Guide&lt;/title&gt;
    &lt;meta name=&quot;keywords&quot; content=&quot;your keywords&quot;&gt;
    &lt;meta name=&quot;description&quot; content=&quot;your description&quot;&gt;
    &lt;meta name=&quot;author&quot; content=&quot;author,email address&quot;&gt;
&lt;/head&gt;
</code></pre><p><strong>viewport</strong></p>
<ul>
<li>viewport: &#x4E00;&#x822C;&#x6307;&#x7684;&#x662F;&#x6D4F;&#x89C8;&#x5668;&#x7A97;&#x53E3;&#x5185;&#x5BB9;&#x533A;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x5DE5;&#x5177;&#x6761;&#x3001;&#x9009;&#x9879;&#x5361;&#x7B49;&#x5185;&#x5BB9;&#xFF1B;</li>
<li>width: &#x6D4F;&#x89C8;&#x5668;&#x5BBD;&#x5EA6;&#xFF0C;&#x8F93;&#x51FA;&#x8BBE;&#x5907;&#x4E2D;&#x7684;&#x9875;&#x9762;&#x53EF;&#x89C1;&#x533A;&#x57DF;&#x5BBD;&#x5EA6;&#xFF1B;</li>
<li>device-width: &#x8BBE;&#x5907;&#x5206;&#x8FA8;&#x7387;&#x5BBD;&#x5EA6;&#xFF0C;&#x8F93;&#x51FA;&#x8BBE;&#x5907;&#x7684;&#x5C4F;&#x5E55;&#x53EF;&#x89C1;&#x5BBD;&#x5EA6;&#xFF1B;</li>
<li>initial-scale: &#x521D;&#x59CB;&#x7F29;&#x653E;&#x6BD4;&#x4F8B;&#xFF1B;</li>
<li>maximum-scale: &#x6700;&#x5927;&#x7F29;&#x653E;&#x6BD4;&#x4F8B;&#xFF1B;</li>
</ul>
<p>&#x4E3A;&#x79FB;&#x52A8;&#x7AEF;&#x8BBE;&#x5907;&#x4F18;&#x5316;&#xFF0C;&#x8BBE;&#x7F6E;&#x53EF;&#x89C1;&#x533A;&#x57DF;&#x7684;&#x5BBD;&#x5EA6;&#x548C;&#x521D;&#x59CB;&#x7F29;&#x653E;&#x6BD4;&#x4F8B;&#x3002;</p>
<pre><code>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
</code></pre><p><strong>iOS &#x56FE;&#x6807;</strong></p>
<ul>
<li>apple-touch-icon &#x56FE;&#x7247;&#x81EA;&#x52A8;&#x5904;&#x7406;&#x6210;&#x5706;&#x89D2;&#x548C;&#x9AD8;&#x5149;&#x7B49;&#x6548;&#x679C;;</li>
<li>apple-touch-icon-precomposed &#x7981;&#x6B62;&#x7CFB;&#x7EDF;&#x81EA;&#x52A8;&#x6DFB;&#x52A0;&#x6548;&#x679C;&#xFF0C;&#x76F4;&#x63A5;&#x663E;&#x793A;&#x8BBE;&#x8BA1;&#x539F;&#x56FE;;</li>
</ul>
<pre><code>&lt;!-- iPhone &#x548C; iTouch&#xFF0C;&#x9ED8;&#x8BA4; 57x57 &#x50CF;&#x7D20;&#xFF0C;&#x5FC5;&#x987B;&#x6709; --&gt;
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-57x57-precomposed.png&quot;&gt;

&lt;!-- iPad&#xFF0C;72x72 &#x50CF;&#x7D20;&#xFF0C;&#x53EF;&#x4EE5;&#x6CA1;&#x6709;&#xFF0C;&#x4F46;&#x63A8;&#x8350;&#x6709; --&gt;
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-72x72-precomposed.png&quot; sizes=&quot;72x72&quot;&gt;

&lt;!-- Retina iPhone &#x548C; Retina iTouch&#xFF0C;114x114 &#x50CF;&#x7D20;&#xFF0C;&#x53EF;&#x4EE5;&#x6CA1;&#x6709;&#xFF0C;&#x4F46;&#x63A8;&#x8350;&#x6709; --&gt;
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-114x114-precomposed.png&quot; sizes=&quot;114x114&quot;&gt;

&lt;!-- Retina iPad&#xFF0C;144x144 &#x50CF;&#x7D20;&#xFF0C;&#x53EF;&#x4EE5;&#x6CA1;&#x6709;&#xFF0C;&#x4F46;&#x63A8;&#x8350;&#x6709; --&gt;
&lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-144x144-precomposed.png&quot; sizes=&quot;144x144&quot;&gt;
</code></pre><p><strong>favicon</strong></p>
<p>&#x5728;&#x672A;&#x6307;&#x5B9A; favicon &#x65F6;&#xFF0C;&#x5927;&#x591A;&#x6570;&#x6D4F;&#x89C8;&#x5668;&#x4F1A;&#x8BF7;&#x6C42; Web Server &#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x7684; favicon.ico &#x3002;&#x4E3A;&#x4E86;&#x4FDD;&#x8BC1; favicon &#x53EF;&#x8BBF;&#x95EE;&#xFF0C;&#x907F;&#x514D;404&#xFF0C;&#x5FC5;&#x987B;&#x9075;&#x5FAA;&#x4EE5;&#x4E0B;&#x4E24;&#x79CD;&#x65B9;&#x6CD5;&#x4E4B;&#x4E00;&#xFF1A;</p>
<ul>
<li>&#x5728; Web Server &#x6839;&#x76EE;&#x5F55;&#x653E;&#x7F6E; favicon.ico &#x6587;&#x4EF6;&#xFF1B;</li>
<li>&#x4F7F;&#x7528; link &#x6307;&#x5B9A; favicon&#xFF1B;</li>
</ul>
<pre><code>&lt;link rel=&quot;shortcut icon&quot; href=&quot;path/to/favicon.ico&quot;&gt;
</code></pre><p><strong>HEAD &#x6A21;&#x677F;</strong></p>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;zh-cmn-Hans&quot;&gt;
&lt;head&gt;
    &lt;meta charset=&quot;utf-8&quot;&gt;
    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge,chrome=1&quot;&gt;
    &lt;title&gt;Style Guide&lt;/title&gt;
    &lt;meta name=&quot;description&quot; content=&quot;&#x4E0D;&#x8D85;&#x8FC7;150&#x4E2A;&#x5B57;&#x7B26;&quot;&gt;
    &lt;meta name=&quot;keywords&quot; content=&quot;&quot;&gt;
    &lt;meta name=&quot;author&quot; content=&quot;name, email@gmail.com&quot;&gt;

    &lt;!-- &#x4E3A;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x6DFB;&#x52A0; viewport --&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;

    &lt;!-- iOS &#x56FE;&#x6807; --&gt;
    &lt;link rel=&quot;apple-touch-icon-precomposed&quot; href=&quot;/apple-touch-icon-57x57-precomposed.png&quot;&gt;

    &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;RSS&quot; href=&quot;/rss.xml&quot; /&gt;
    &lt;link rel=&quot;shortcut icon&quot; href=&quot;path/to/favicon.ico&quot;&gt;
&lt;/head&gt;
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="语义化.html" class="navigation navigation-prev " aria-label="Previous page: 2.2 语义化">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../css/CSS.html" class="navigation navigation-next " aria-label="Next page: 3. CSS">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"2.3 HEAD","level":"1.3.3","depth":2,"next":{"title":"3. CSS","level":"1.4","depth":1,"path":"css/CSS.md","ref":"css/CSS.md","articles":[{"title":"3.1 通用约定","level":"1.4.1","depth":2,"path":"css/通用约定.md","ref":"css/通用约定.md","articles":[]},{"title":"3.2 字体排印","level":"1.4.2","depth":2,"path":"css/字体排印.md","ref":"css/字体排印.md","articles":[]},{"title":"3.3 模块组织","level":"1.4.3","depth":2,"path":"css/模块组织.md","ref":"css/模块组织.md","articles":[]},{"title":"3.4 Less规范","level":"1.4.4","depth":2,"path":"css/Less规范.md","ref":"css/Less规范.md","articles":[]},{"title":"3.5 性能优化","level":"1.4.5","depth":2,"path":"css/性能优化.md","ref":"css/性能优化.md","articles":[]}]},"previous":{"title":"2.2 语义化","level":"1.3.2","depth":2,"path":"html/语义化.md","ref":"html/语义化.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"html/HEAD.md","mtime":"2019-05-14T09:54:28.922Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-17T02:26:20.307Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

